<div xmlns:th="http://www.thymeleaf.org"
	class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">

		<div class="container-fluid">
			<a class="btn btn-navbar" data-toggle="collapse"
				data-target=".nav-collapse"> <span class="icon-bar"></span> <span
				class="icon-bar"></span> <span class="icon-bar"> </span>
			</a> 
			<a class="brand" href="#"> 
				<span class="label label-info">GOORUDA</span>
				<span class="badge badge-warning">0.0.1 &beta;</span>
			</a>

			<div class="nav-collapse collapse">


				<ul class="nav" th:each="lg : ${topNavBar}">
					<li th:if="${lg.links.empty}" th:with="key=${lg.labelKey}">
					
						<a href="#"
							th:href="@{${lg.href}}" th:text="${#messages.msg(key)}">About</a>
					
					</li>

					<li class="dropdown" th:if="${lg.links.empty == false}"  th:with="keyLg=${lg.labelKey}">
						
						<a
							href="#" class="dropdown-toggle" data-toggle="dropdown"
							th:text="${#messages.msg(keyLg)}">Dropdown <b class="caret"></b>
						</a>

						<ul class="dropdown-menu">
							<li th:each="lk : ${lg.links}" >
								<span th:with="key=${lk.labelKey}" >
								
								
								<a href="#" th:href="@{${lk.href}}"
									  th:text="${#messages.msg(key)}">Action</a>
								
								
								</span>	  
							</li>

						</ul>
					</li>

				</ul>


				<p class="navbar-text pull-right">
					Hello <a href="#" class="navbar-link"
						th:text="${#authentication.name}">Username</a> | 
						<a href="#" th:href="@{/signout}" th:if="${#authentication.name != 'Guest'}">Sign Out</a>
				</p>


			</div>
			<!--/.nav-collapse -->
		</div>
	</div>
</div>